package com.xky.fileupload.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author keying.xia
 * @date 2017/11/30
 */
@Controller
@RequestMapping(value = "/web")
public class IndexController {


    @GetMapping(value = "/index")
    public String index(ModelMap map) {
        map.put("title", "freemarker hello word");
        return "index";
    }


}
